arm: spear: do not return random value from stack
author[email protected] <[email protected]>
Sun, 30 Jul 2017 18:09:38 +0000 (20:09 +0200)
committerTom Rini <[email protected]>
Sun, 13 Aug 2017 19:17:26 +0000 (15:17 -0400)
If the NOR device is not available do not return
a random value from the stack.

Signed-off-by: Heinrich Schuchardt <[email protected]>
arch/arm/cpu/arm926ejs/spear/spl.c

index a60f5838de418f93df7251f69156b00ee67b3b02..ba1e5591574c7d194e0fe2ca52ef5a4a0c49715b 100644 (file)
@@ -222,7 +222,7 @@ static void snor_init(void)
 
 u32 spl_boot_device(void)
 {
-       u32 mode;
+       u32 mode = 0;
 
        /* Currently only SNOR is supported as the only */
        if (snor_boot_selected()) {